package com.xu.quartz;

import com.xu.utils.RedisUtil;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

public class StartSelectJob implements Job {

    @Autowired
    private RedisUtil redisUtil;

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        redisUtil.set("select_state",1);
        System.out.println("选课已开启");
    }
}
